package com.tian.elasticsearch.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * {@code @description:} 系统日志索引实体类
 *
 * @author tianwc 公众号：Java后端技术全栈
 * 在线刷题 1200+java面试题和1000+篇技术文章：<a href="https://woaijava.cc/">博客地址</a>
 * {@code @date:} 2024-10-08 11:24
 * {@code @version:} 1.0
 */
@Data
@Document(indexName = "charge-sys-log")
public class SysLogESEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    private String id;

    @Field(type = FieldType.Text)
    private String methodName;

    @Field(type = FieldType.Text)
    private String ip;

    @Field(type = FieldType.Text)
    private String url;

    @Field(type = FieldType.Text)
    private String logContent;
}
